package com.mdd.common.entity.yangyangLeadingEnterprise.param;

import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

@Data
@ApiModel("账号登录参数")
public class LoginParam implements Serializable {

    @ApiModelProperty(value = "登录账号")
    @JsonProperty("username")
    private String username;

    @ApiModelProperty(value = "登录方式（1：账号密码登录；2：手机验证码登录；3：本机号码一键登录注册；4：微信一键登录；5：iOS登录注册）")
    @JsonProperty("loginType")
    private Integer loginType;

    @ApiModelProperty(value = "")
    @JsonProperty("token")
    private String token;

    @ApiModelProperty(value = "登录密码")
    @JsonProperty("password")
    private String password;

    @ApiModelProperty(value = "确认密码")
    @JsonProperty("passwordAgain")
    private String passwordAgain;

    @ApiModelProperty(value = "手机号")
    @JsonProperty("phone")
    private String phone;

    @ApiModelProperty(value = "验证码登录")
    @JsonProperty("code")
    private String code;

    @ApiModelProperty(value = "验证码key")
    @JsonProperty("codeKey")
    private String codeKey;

    @ApiModelProperty(value = "短信类型（1：test；2：验证码登录；3：绑定/修改手机号码；4：忘记/重置密码）")
    @JsonProperty("smsType")
    private Integer smsType;

    @ApiModelProperty(value = "用户id")
    @JsonProperty("userId")
    private Long userId;

    @ApiModelProperty(value = "微信登录唯一用户标识")
    @JsonProperty("openId")
    private String openId;

    @ApiModelProperty(value = "ios登录唯一用户标识")
    @JsonProperty("appleId")
    private String appleId;

    @ApiModelProperty(value = "手机号一键登录唯一用户标识")
    @JsonProperty("phoneKey")
    private String phoneKey;

    @ApiModelProperty(value = "用户注册协议(1:同意；2：不同意)")
    @JsonProperty("registrationAgreementFlag")
    private Integer registrationAgreementFlag;

    @ApiModelProperty(value = "app版本号")
    private String appVersion;

    @ApiModelProperty(value = "系统版本号")
    private String sysVersion;

    @ApiModelProperty(value = "终端（5：安卓；6：iOS；）")
    private Integer terminal;

}
